CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(HHV)

# -----------

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${HHV_SOURCE_DIR}/cmake/")


# -----------

FIND_PACKAGE( Boost 1.41.0 COMPONENTS program_options )
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIRS})

FIND_PACKAGE(HDF5 REQUIRED COMPONENTS C CXX)
INCLUDE_DIRECTORIES( ${HDF5_INCLUDE_DIRS} )

FIND_PACKAGE(CUDA)

FIND_PACKAGE(Doxygen)

# --------------

SET(CMAKE_CXX_FLAGS "-g -Wall -Wextra")
IF( CUDA_FOUND )
  SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHHV_HAVE_CUDA" )
ENDIF( CUDA_FOUND )

# ---------------

INCLUDE_DIRECTORIES( ${HHV_SOURCE_DIR}/include )
LINK_DIRECTORIES( ${HHV_BINARY_DIR}/src )

ADD_SUBDIRECTORY( src )


# -----------------

ADD_SUBDIRECTORY( examples )

# -----------------

ADD_SUBDIRECTORY( doc )
